package com.logica.mdm.webservices.messages;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

//import com.logica.mdm.webservices.messages.beans.PartyBean;
import com.logica.mdm.webservices.messages.beans.PartyWithAddressAndContractBean;

/**
 * Response Class for the search WebService.
 */
public class SearchPartyByPhoneNumberResponse implements Serializable {
	private static final long serialVersionUID = 1L;

	/** Indicate weather or not an error occured. */
	private boolean errorOccured;

	/** Message. */
	private String message;
	
	/** List of corresponding Party. */
	private List<PartyWithAddressAndContractBean> partyResults;

	/**
	 * Default Constructor.
	 */
	public SearchPartyByPhoneNumberResponse() {
		partyResults = new ArrayList<PartyWithAddressAndContractBean>();
	}


	/**
	 * @return the errorOccured
	 */
	public boolean isErrorOccured() {
		return errorOccured;
	}

	/**
	 * @param errorOccured the errorOccured to set
	 */
	public void setErrorOccured(boolean errorOccured) {
		this.errorOccured = errorOccured;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the partyResults
	 */
	public List<PartyWithAddressAndContractBean> getPartyResults() {
		return partyResults;
	}

	/**
	 * @param partyResults the partyResults to set
	 */
	public void setPartyResults(List<PartyWithAddressAndContractBean> partyResults) {
		this.partyResults = partyResults;
	}
}
